package com.ruoyi.system.domain;

import org.springframework.data.redis.connection.DataType;

import java.io.Serializable;

/**
 * @author wjialong
 */
public class RedisDataInfo implements Serializable {
    private static final long serialVersionUID = -196877348651830488L;
    String redisId;
    Integer dbId;
    String key;
    DataType type;
    Long size;
    Long ttl;
    Object value;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public DataType getType() {
        return type;
    }

    public void setType(DataType type) {
        this.type = type;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public Long getTtl() {
        return ttl;
    }

    public void setTtl(Long ttl) {
        this.ttl = ttl;
    }

    public String getRedisId() {
        return redisId;
    }

    public void setRedisId(String redisId) {
        this.redisId = redisId;
    }

    public Integer getDbId() {
        return dbId;
    }

    public void setDbId(Integer dbId) {
        this.dbId = dbId;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "RedisKeyInfo{" +
                "redisId=" + redisId +
                ", dbId=" + dbId +
                ", key='" + key + '\'' +
                ", type=" + type +
                ", size=" + size +
                ", ttl=" + ttl +
                ", value=" + value +
                '}';
    }
}
